# 给变量赋初始值
result = 0
i = 1
# 判断i是否小于101
while i < 101:
    # 判断i是否能够被3和5同时整除
    if i%3 == 0 and i%5 == 0:
        # 满足条件的值求和
        result +=i
    i += 1
# 打印输出结果
print(result)